package com.ruoyi.flowable.api;

import com.ruoyi.system.api.domain.SysRole;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(name = "ruoyi-system")
public interface SystemUserOpenFeign {
    @PostMapping("/toFlowableFeign/roleList")
    List<SysRole> listRole(SysRole role);

    @PostMapping("/toFlowableFeign/userList")
    List<SysUser> listUser(SysUser user);


    @PostMapping("/toFlowableFeign/selectUserById")
    SysUser selectUserById(Long userId);

    @PostMapping("/toFlowableFeign/selectRoleById")
    SysRole selectRoleById(Long roleId);

}
